package com.mezz.bones.framework.gateway.config.bind;

import com.mezz.bones.framework.gateway.config.MetadataVersionLoadBalancerConfig;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.context.annotation.Configuration;

/**
 * 负载均衡客户端配置类
 * 统一管理多个服务的负载均衡配置
 *
 * */
//@Configuration
@LoadBalancerClients({
    // 默认配置：当没有指定特定负载均衡器时，使用轮询策略
    // 这样可以避免未绑定负载均衡器时的错误
    @LoadBalancerClient(name = "laicui-wms-consumer",configuration = MetadataVersionLoadBalancerConfig.class),
})
public class LoadBalancerClientBindConfiguration {

}